<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    https://www.google.com/search?q=shuxue**&hl=zh-CN**
</body>

</html>
<script>
    function getUrl(url) {
        var obj = {}
        var arr = url.split('?')
        if (arr.length <= 1) {
            return obj
        }
        arr = arr[1].split('&')
        for (let i = 0; i < arr.length;i++) {
            var a = arr[i].split('=')
            obj[a[0]] = a[1]
        }
        return obj
    }
    var a = getUrl('https://www.google.com/search?q=shuxue**&hl=zh-CN**')
    console.log(a);
</script>